package com.allen.imsystem.chat.model.vo;

import com.allen.imsystem.common.Const.GlobalConst;
import lombok.Data;

import java.util.Objects;

@Data
public class GroupMemberView {
    private String uid;
    private String groupAlias;
    private String username;
    private String avatar;
    private String signWord;
    private Integer relation;

    public void setAvatar(String avatar) {
        if(Objects.nonNull(avatar)){
            this.avatar = GlobalConst.Path.AVATAR_URL + avatar;
        }
    }
}
